//Map.h
#ifndef _MAP_H_
    #define _MAP_H_

#include <SDL/SDL.h>
#include <vector>

#include "Tile.h"
#include "Surface.h"


//Loads tiles onto the map
class Map {
	public:

//An SDL_Surface pointer to Surf_Tileset that contains the current tileset
		SDL_Surface*			Surf_Tileset;

//No argument constructor that creates an empty Surf_Tileset
		Map();

//Loads a tile onto the map, returns false if file not found
		bool OnLoad(char* File);

//Draws the tiles onto the map at x,y coordinates MapX and MapY
		void OnRender(SDL_Surface* Surf_Display, int MapX, int MapY);

//Creates a Tile pointer that holds the ID of the tile at the x,y coordinates
        Tile*    GetTile(int X, int Y);


    private:
		std::vector<Tile>      TileList;

};


#endif
